import Goods from "@/views/Goods/Goods";
import GoodsCategory from "@/views/Goods/GoodsCategory";
import GoodsBrand from "@/views/Goods/GoodsBrand";
import GoodsUnit from "@/views/Goods/GoodsUnit";
import GoodsEncode from "@/views/Goods/GoodsEncode";
import GoodsRecord from "@/views/Goods/GoodsRecord";
import GoodsImage from "@/views/Goods/GoodsImage";


const goodsRoutes = [{
    path: "goods",
    component: Goods,
    redirect: "goods/goodsCategory",
    //嵌套路由
    children: [{
            path: "goodsCategory",
            component: GoodsCategory
        },
        {
            path: "goodsBrand",
            component: GoodsBrand
        },
        {
            path: "goodsUnit",
            component: GoodsUnit
        },
        {
            path: "goodsEncode",
            component: GoodsEncode
        },
        {
            path: "goodsRecord",
            component: GoodsRecord
        },
        {
            path: "goodsimage",
            component: GoodsImage
        }
    ]
}];

export default goodsRoutes;